package com.feihao.zhou.bean;

import java.util.List;

public class Student_Course {
    private Integer id;     //主键id
    private String name;    //学生姓名
    private Integer age;    //学生年龄
    private Integer cid;  //学生班级
    private List<Course> course;   //学生所选的课程

    public Student_Course() {
    }

    public Student_Course(Integer id, String name, Integer age, Integer cid, List<Course> course) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.cid = cid;
        this.course = course;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }


    public List<Course> getCourse() {
        return course;
    }

    public void setCourse(List<Course> course) {
        this.course = course;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Student_Course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", cid=" + cid +
                ", course=" + course +
                '}';
    }
}
